import api from "@/api";
import { PORT } from "../config/servicePort";

/**
 * 获取活动列表
 */
export const getWalkList = (params: any) => api.get(`${PORT}/Activities/getList`, params);

// 获取活动详情
export const getWalkDetail = (params: any) => api.get(`${PORT}/Activities/getActiveInfo`, params);

// 修改活动
export const editWalk = (data?: any) => api.post(`${PORT}/Activities/save`, data);

// 删除活动
export const deleteWalk = (data?: any) => api.post(`${PORT}/Activities/del`, data);

// 更新活动状态
export const updateWalkStatus = (data?: any) => api.post(`${PORT}/Activities/updateStatus`, data);

//获取报名列表
export const getSignUserList = (data?: any) => api.get(`${PORT}/Activities/getActiveSignUpList`, data);
